package work6;

public class User1 {
	private int id;
	private String name;
	private int money;
	private int gid;
	private Goods goods;
	public User1() {
		super();
	}

	public User1(int id, String name, int money, int gid, Goods goods) {
		super();
		this.id = id;
		this.name = name;
		this.money = money;
		this.gid = gid;
		this.goods = goods;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getMoney() {
		return money;
	}

	public void setMoney(int money) {
		this.money = money;
	}

	public int getGid() {
		return gid;
	}

	public void setGid(int gid) {
		this.gid = gid;
	}
	
	
	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "{"+this.id+" "+this.name+" "+this.money+" "+this.gid+" "+this.goods+"}";
	}
}
